/** Prescription **/
package edu.gatech.datastorage;

import java.io.Serializable;

/**
 * @author Courtney
 * @version 1.0
 */
public class Prescription implements Serializable{
   /**
	 * 
	 */
	private static final long serialVersionUID = -8654697819430342228L;

/**
    * information on the medicine to be taken and how often
    */
   private String medicine, frequency;

   /**
    * @param medicine
    * @param frequency
    */
   public Prescription(String medicine, String frequency) {
       this.medicine = medicine;
       this.frequency = frequency;
   }

   /**
    * @return the name of medicine instruction with frequency and time
    */
   public String toString() {
       return medicine + " to be taken " + frequency + "times a day.";
   }

   /**
    * @return the medicine
    */
   public String getMedicine() {
       return medicine;
   }

   /**
    * @param medicine the medicine to set
    */
   public void setMedicine(String medicine) {
       this.medicine = medicine;
   }

   /**
    * @return the frequency
    */
   public String getFrequency() {
       return frequency;
   }

   /**
    * @param frequency the frequency to set
    */
   public void setFrequency(String frequency) {
       this.frequency = frequency;
   }
}
